package com.lxy.demo.aspect;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
//@Order(1)
@Slf4j
//@Component
@Aspect
public class MyAspectDemo2 {
    @Before("com.lxy.demo.aspect.MyAspectDemo.pt()")
    public void doBefore(JoinPoint joinPoint){
       // log.info(joinPoint.getSignature().toShortString());
        log.info("执行MyAspectDemo2.before方法...");}

    @After("com.lxy.demo.aspect.MyAspectDemo.pt()")
    public void doAfter(){ log.info("执行MyAspectDemo2.after方法...");}
}
